/**
 * Demo.java is created by Zachariah at 2012-2-3 下午05:59:30
 */
package com.zack.designPattern.chain;

/**
 * @author zachariah zzcfrog@gmail.com
 *
 */
public class Demo {

	/**
	 *
	 * @author zachariah
	 * @param args
	 */
	public static void main(String[] args) {
		Handler ha= new Handler1("a",null);
		Handler hb = new Handler1("b",ha);
		Handler hc = new Handler1("c",hb);
		
		hc.handle("c");
		hc.handle("b");
		hc.handle("a");
		hc.handle("d");

	}

}
